package io.renren.modules.microMajor.service.impl;

import io.renren.modules.microMajor.dao.MicroMajorDao;
import io.renren.modules.microMajor.service.MicroMajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MicroMajorServiceImpl implements MicroMajorService {


    @Autowired
    MicroMajorDao microMajorDao;

    @Override
    public List getMarorList(Integer classification) {
        List list=microMajorDao.getMarorList(classification);
        return list;
    }

    @Override
    public List getMarorCourseList(Integer microMajorId) {
        List list=microMajorDao.getMarorCourseList(microMajorId);
        return list;
    }

    @Override
    public Object getKang(int start,int end) {
for(int i=0;i<100000;i++){
    List<Object> o =microMajorDao.getKang(start,end);
    for (Object oo : o){
        System.out.println(oo);
    }

}

        return null;
    }
}
